ReactivePage class¶
Defined in
Namespace: CrissCross.WPF.UI.Controls
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Controls.ReactivePage<T>
Modifiers: public
Summary¶
A Page that is reactive.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class ReactivePage~T~
class Page
Page <|-- ReactivePage~T~
class IViewFor~TViewModel~ {
<>
}
IViewFor~TViewModel~ <|.. ReactivePage~T~
class IViewFor {
<>
}
IViewFor <|.. ReactivePage~T~
class IActivatableView {
<>
}
IActivatableView <|.. ReactivePage~T~
Inherits from: Page
Implements: IViewFor
Remarks¶
This class is a Page that is also reactive. That is, it implements IViewFor. You can extend this class to get an implementation of IViewFor rather than writing one yourself.
Note that the XAML for your control must specify the same base class, including the generic argument you provide for your view
model. To do this, use the TypeArguments attribute as follows:
<![CDATA[
<ui:ReactivePage
x:Class="Foo.Bar.Views.YourView"
x:TypeArguments="vms:YourViewModel"
xmlns:ui="https://github.com/ChrisPulman/CrissCross.ui"
xmlns:vms="clr-namespace:Foo.Bar.ViewModels"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d">
<!-- view XAML here -->
</ui:ReactivePage>
]]>
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| BindingRoot | Gets the binding root view model. |
| ViewModel | Gets or sets the strongly typed view model. Override this property to integrate with the platform's binding system. |
Fields¶
| Name | Summary |
|---|---|
| static ViewModelProperty | The view model dependency property. |